<!-- Begin: cppage - Change Password -->
<?
if ($_GET['category'] == 'produtos') {
    $category = 'P';
    $name = 'produtos';
} else if ($_GET['category'] == 'veiculos') {
    $category = 'V';
    $name = 'veículos';
}
?>
<div class="cppage change-plan">
    <div class="header">
        <h2>Escolha um plano para cadastro de <?=ucfirst($name); ?></h2>
    </div>
    <form id="change-plan">
        <input type="hidden" name="id" value="<?=CPanel::$account->a_id;?>">
        <input type="hidden" name="category" value="<?=$category;?>">
        <input type="hidden" name="type" value="<?=CPanel::$account->a_type;?>">
        <select class="input" name="plan" id="plan" title="Plano">
            <option></option>
            <? foreach (DbGet::plans(CPanel::$account->a_type, $category) as $plan): ?>
                <option value="<?= $plan->id ?>" <? if (CPanel::$account->p_id == $plan->id) { ?> selected="selected" <? } ?>  ><?= $plan->name ?> - R$<?= number_format($plan->price, 2, ",", ".") ?></option>
            <? endforeach ?>
        </select>
        <input class="submit" type="submit" value="Continuar">
    </form>
    <div class="description"></div>
</div> <!-- End -->
